package com.hdaccp.foodsales.service.impl;


import com.hdaccp.foodsales.dao.jinhuoDao;
import com.hdaccp.foodsales.dao.xiaoshouDao;
import com.hdaccp.foodsales.entity.Jinhuo;
import com.hdaccp.foodsales.entity.Shangpin;
import com.hdaccp.foodsales.entity.Xiaoshou;
import com.hdaccp.foodsales.service.jinhuoService;
import com.hdaccp.foodsales.service.xiaoshouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class xiaoshouServiceImpl implements xiaoshouService {

    @Autowired
    private xiaoshouDao xiaoshouDao;

    @Override
    public List<Shangpin> query() {
        return xiaoshouDao.query();
    }

    @Override
    public List<Xiaoshou> queryAll() {
        return xiaoshouDao.queryAll();
    }

    @Override
    public int addhuo(Xiaoshou xiaoshou) {
        return xiaoshouDao.addhuo(xiaoshou);
    }

    @Override
    public int update(Shangpin shangpin) {
        return xiaoshouDao.updata(shangpin);
    }


}
